using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using DBManager.DanhMucHeThong.BAL;

namespace MamNonTuoiTho.Form.QuanLyHocSinh
{
    public partial class frmXa_Edit : DevComponents.DotNetBar.Office2007Form
    {
        public frmXa_Edit()
        {
            InitializeComponent();
            Huyen_Load();
        }
        #region LoadData
        private void Huyen_Load()
        {
            cbxHuyen.DataSource = DanhMuc_BAL.DanhMuc_GetItems("Huyen");
        }
        #endregion LoadData

        private void cmdLuu_Click(object sender, EventArgs e)
        {
            DanhMuc_BAL.DanhMuc_Add(int.Parse(cbxHuyen.SelectedValue.ToString()), txtTenXa.Text.Trim(), "Xa");
        }
    }
}